import request from "@/utils/request";

//请求登录
export const reqLogin = (username, password) => {
  return request.post(`/acl/index/login`, {
    username,
    password,
  });
};

//根据token获取用户信息
export const reqUserInfo = () => {
  return request.get(`/acl/index/info`);
};

//退出登录
export const reqLogout = () => {
  return request.post(`/acl/index/logout`);
};
